<template>
  	<web-view :src="urls"></web-view>
</template>

<script>
export default {
  data() {
    return {
	    urls:'',
    };
  },
	onLoad() {
		// this.webViewUrl = decodeURIComponent(options.url)// 传过来的值是转译过的，需要转回原值
		this.urls = uni.getStorageSync('PAYWEBURL')//如果是不需要转译的，直接获取
		console.log(this.urls)
		uni.request({
		  url: this.urls,
		  success: function (res) {
		    console.log(res,'66666666')
			
		  },
		  fail: function (error) {
		    console.log(error)
		  }
		})
		// setTimeout(()=>{
		// 	uni.switchTab({
		// 		url: '/pages/tabber/home'
		// 	});
		// },1000);
		setTimeout(()=>{
			uni.navigateTo({
				url: '/pages/webview/webview2'
			})
		},100);
		
	},
};
</script>